package com.baizhi.mapper;

import com.baizhi.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    int selectCount(Integer id);
    void addBook(Book book);
    void removeBook(Integer id);
    void updateBook(Book book);
    Book selectBookById(Integer id);
    List<Book> selectAllBooks(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize,@Param("query")String query,@Param("value")String value);
    List<Book> recommendBooks();
    List<Book> hotSale();
    List<Book> newBooks();
    List<Book> newHotBooks();
    List<Book> selectBooks(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize,@Param("value")String value);
    List<Book> selectBookByCategoryId(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize,@Param("fid")Integer fid,@Param("sid")Integer sid);
}
